<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Title</title>
  <script src="/js/jquery-3.6.0.min.js"></script>
  <script>
    $(function () {
      $("#addBtn").click(function(){
        let role={
          "name":$("#name").val(),
          "description":$("#description").val()
        };
        $.get("/role/add",role,function (r){
          console.log(r);
        });
      });
    })
  </script>
</head>
<body>
<table>
  <tr>
    <th><input type="checkbox"></th>
    <th>角色名</th>
    <th>角色描述</th>
    <th>操作</th>
  </tr>
</table>

名称:<input type="text" id="name" name="name"> <br>
描述:<input type="text" id="description"> <br>
<input type="button" value="增加" id="addBtn">
</body>
</html>
